package com.mzydz.shutdown;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class AlarmReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        String action = intent.getStringExtra("action");
        Log.d("AlarmReceiver", "onReceive------------------" + action);
        Intent iServ = new Intent(context, ShutdownService.class);
        iServ.putExtra("action", action);
        context.startService(iServ);
    }
}
